package com.dhb.pattern.strategy.promotion;

/**
 * 功能描述：促销活动方案
 * 创建人：citymoon
 * 创建日期：2019/5/21
 */
public class PromotionActivity {
    private PromotionStrategy promotionStrategy;

    public PromotionActivity(PromotionStrategy promotionStrategy){
        this.promotionStrategy = promotionStrategy;
    }

    //执行促销活动
    public void execute(){
        promotionStrategy.doPromotion();
    }
}
